import { createApp } from "vue";
import App from "./App.vue";
import "@/assets/resetCss/index.less";
import ElementPlus from "element-plus";
import { createPinia } from "pinia";
import piniaPluginPersist from "pinia-plugin-persist";
import router from "./router";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";

const app = createApp(App);
// 创建pinia实例
const pinia = createPinia();
// 安装pinia持久化插件
pinia.use(piniaPluginPersist);
app.use(router);
app.use(pinia);
app.use(ElementPlus, { size: "small", zIndex: 3000 });
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component);
}
app.mount("#app");
